]> dgit.raspbian.org Git - gnome-shell.git/commit
st/theme-node-drawing: Fix corner pipeline leak
authorJonas Ådahl <jadahl@gmail.com>
Mon, 15 Jul 2024 19:28:58 +0000 (21:28 +0200)
committerRobert Mader <robert.mader@posteo.de>
Mon, 19 Aug 2024 11:47:32 +0000 (11:47 +0000)
commitdeb9f05303613ff7ab5ae440a4199e1d2806caff
tree00e5b399dd01145d56110471c4edb1d98ad51895
parent35647a0b6535b810b0a15c148e0e0e2f3fc32898
st/theme-node-drawing: Fix corner pipeline leak

The corner pipelines state theme node paint state was not necessarily
free of existing pipelines, so make sure to free them before looking up
new ones.

This avoids leaking thousands of CoglPipeline instances after toggling
the overview a bunch of times.

Fixes: e1868cab1a ("st/theme-node-drawing: Factor in border radius in update_resources()")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3421>
src/st/st-theme-node-drawing.c